package com.yllt4cloud.shangmi.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yllt4cloud.common.ddbase.util.JsonUtil;
import com.yllt4cloud.shangmi.api.dto.RegionDto;
import com.yllt4cloud.shangmi.api.entity.Region;
import com.yllt4cloud.shangmi.biz.mapper.RegionMapper;
import com.yllt4cloud.shangmi.biz.service.IRegionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: yaoxj
 * @create: 2020-01-20 17:45
 **/
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements IRegionService {
    @Override
    public List<Region> queryRegionList(RegionDto regionDto) {
        return baseMapper.selectByMap(JsonUtil.parseMap(regionDto));
    }
}
